package com.ruoyi.project.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员用户对象 t_user
 * 
 * @author ruoyi
 * @date 2024-01-23
 */
public class TUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 手机号 */
    @Excel(name = "手机号(邮箱)")
    private String mobile;

    /** 头像 */
    @Excel(name = "头像")
    private String photo;

    /** 最后登录IP */
    @Excel(name = "最后登录IP")
    private String lastLoginIp;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLoginTime;

    /** 注册渠道 */
    @Excel(name = "注册渠道")
    private Long channel;

    /** 用户状态 0 正常  1 删除  2 锁定 */
    @Excel(name = "用户状态 0 正常  1 删除  2 锁定")
    private Integer userStatus;
    /** 会员等级 0 默认  1 vip  2 vvip */
    @Excel(name = "会员等级 0 默认  1 vip  2 vvip")
    private Integer userIdentity;

    @Excel(name = "平账金额")
    private BigDecimal flatAmount;

    @Excel(name = "用户备注")
    private String userRemark;

    /** 手机号 */
    @Excel(name = "手机号(邮箱)大写")
    private String mobileLarge;
    /**
     * 认证id
     */
    private Long authId;



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setPhoto(String photo)
    {
        this.photo = photo;
    }

    public String getPhoto()
    {
        return photo;
    }
    public void setLastLoginIp(String lastLoginIp)
    {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp()
    {
        return lastLoginIp;
    }
    public void setLastLoginTime(Date lastLoginTime)
    {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLastLoginTime()
    {
        return lastLoginTime;
    }
    public void setChannel(Long channel)
    {
        this.channel = channel;
    }

    public Long getChannel()
    {
        return channel;
    }
    public void setUserStatus(Integer userStatus)
    {
        this.userStatus = userStatus;
    }

    public Integer getUserStatus()
    {
        return userStatus;
    }

    public Integer getUserIdentity() {
        return userIdentity;
    }

    public void setUserIdentity(Integer userIdentity) {
        this.userIdentity = userIdentity;
    }

    public BigDecimal getFlatAmount() {
        return flatAmount;
    }

    public void setFlatAmount(BigDecimal flatAmount) {
        this.flatAmount = flatAmount;
    }

    public String getUserRemark() {
        return userRemark;
    }

    public void setUserRemark(String userRemark) {
        this.userRemark = userRemark;
    }

    public String getMobileLarge() {
        return mobileLarge;
    }

    public void setMobileLarge(String mobileLarge) {
        this.mobileLarge = mobileLarge;
    }

    public Long getAuthId() {
        return authId;
    }

    public void setAuthId(Long authId) {
        this.authId = authId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("mobile", getMobile())
            .append("photo", getPhoto())
            .append("createTime", getCreateTime())
            .append("lastLoginIp", getLastLoginIp())
            .append("lastLoginTime", getLastLoginTime())
            .append("channel", getChannel())
            .append("userStatus", getUserStatus())
            .toString();
    }
}
